<template>
  <div>
            <ul class="all">
				<li>全部分类</li>
				<li>综合排序</li>
			</ul>
    <div class="c">
            <div class="list" v-for="item in right">
                <div>
                    <img :src="item.img"/>
                </div>
                <div>
                    <span class="add">+</span>
                    <p class="one">{{item.name}}</p>
                    <p class="two" v-if="item.pm_desc">{{item.pm_desc}}</p>
                    <p class="three" v-if="item.specifics">{{item.specifics}}</p>
                    <p class="four"><span>￥{{item.price}}</span><span>￥{{item.market_price}}</span></p>
                </div>
            </div>
    </div>
  </div>
</template>


<script>
export default {
  props:['right'],
//   mounted(){
//       console.log(this.right.length)
//   }
}
</script>

<style>
.list{
	margin-left: 7rem;
	display: flex;
	justify-content: space-around;
	border-bottom: .2rem solid #e0e0e0 ;
}
.c{
	margin-top: 5rem;
}
.list div img{
	width: 100%;
}
.list div:first-of-type{
	width:40% ;
}
.list div:last-of-type{
	width: 50%; 
	padding: 1rem;
	position: relative;
}
.list div:last-of-type .one{
	color:#232b33 ;
	font-size: 1.5rem;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	font-weight: 500;
}
.list div:last-of-type .two{
	color: red;
    border-radius: .4rem;
    border: 2px solid red;
    width: 5rem;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
    margin: .5rem 0;
}
.list div:last-of-type .three{
    font-size: 1.2rem;
    color: #999999;
    padding: 0 0 .5rem 0;
}
.list div:last-of-type .four span:first-of-type{
	color: #f40;
	font-size: 1.2rem;
}
.list div:last-of-type .four span:nth-of-type(2){
	color: #999;
    text-decoration: line-through;
    font-size: 1.2rem;
}
.add{
	position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: .1rem solid #E0E0E0;
    font-size: 2rem;
    color: #FF4400;
    line-height: 2rem;
    text-align: center;
    font-weight: bold;
    right: 1rem;
    bottom: 1rem;
}
.all li{
	font-size: 1.4rem;
	color: #777777;
	border-right:.2rem solid rgba(246,246,246,.95) ;
	width: 50%;
}
.all{
	text-align: center;
	margin-left: 7rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding:1rem 0 1rem  0 ;
	border-bottom: .2rem solid #e0e0e0;
	position: fixed;
    right: 0;
    height: 3rem;
    left: 0;
    background: white;
}

</style>